Update:
Optimized PT rotation function.